package cn.isjinhao.se.sql.grammar.statement.create.represention;

import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.grammar.CurdStatement;

/**
 * @author 01395265
 * @date 2021/4/6
 */
public class OnDuplicateKey extends CurdStatement {

    private CurdStatement curdStatement;

    public OnDuplicateKey(CurdStatement curdStatement) {
        this.curdStatement = curdStatement;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitOnDuplicateKey(this);
    }

    public CurdStatement getCurdStatement() {
        return curdStatement;
    }
}
